package com.cet.datacenter.springcloud.listener;

import org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Description:
 * @Author: Wisdom
 * @Sine 18:03 2021/3/23
 **/
@Component
public class MyApplicationListener implements ApplicationListener<RefreshScopeRefreshedEvent> {

    @Override
    public void onApplicationEvent(RefreshScopeRefreshedEvent refreshScopeRefreshedEvent) {
        System.out.println("---------开始刷新啦！from 1------At."+new Date());
    }
}
